﻿/****************************** Module Header ******************************\
 * Module Name:  tGeneralAdvertisement.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
    /// <summary>
    /// 通用-广告 数据实体类
    /// </summary>
    [DBTable(Common = "通用-广告")]
    public class tGeneralAdvertisement
    {
        /// <summary>
        /// Guid编号
        /// </summary>
        public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

        [DBColumn(Alias = "Guid编号", IsKey = true, DefaultValue = "newid()")]
        private Guid? _ID;

        /// <summary>
        /// 广告名称
        /// </summary>
        public string Title { get { return _Title; } set { _Title = value; } }

        [DBColumn(Alias = "广告名称", CanBeNull = true, Length = "32")]
        private string _Title;

        /// <summary>
        /// 父级编号
        /// </summary>
        public Guid ParentID { get { return _ParentID ?? default(Guid); } set { _ParentID = value; } }

        [DBColumn(Alias = "父级编号", DefaultValue = "00000000-0000-0000-0000-000000000000")]
        private Guid? _ParentID;

        /// <summary>
        /// 项目编号(如商品编号)
        /// </summary>
        public Guid ItemID { get { return _ItemID ?? default(Guid); } set { _ItemID = value; } }

        [DBColumn(Alias = "项目编号", Common = "如商品编号")]
        private Guid? _ItemID;

        /// <summary>
        /// 缩略图
        /// </summary>
        public string Thumb { get { return _Thumb; } set { _Thumb = value; } }

        [DBColumn(Alias = "缩略图", CanBeNull = true, Length = "255")]
        private string _Thumb;

        /// <summary>
        /// 大图
        /// </summary>
        public string Picture { get { return _Picture; } set { _Picture = value; } }

        [DBColumn(Alias = "大图", CanBeNull = true, Length = "255")]
        private string _Picture;

        /// <summary>
        /// 链接地址
        /// </summary>
        public string Url { get { return _Url; } set { _Url = value; } }

        [DBColumn(Alias = "链接地址", CanBeNull = true, Length = "255")]
        private string _Url;

        /// <summary>
        /// 广告内容
        /// </summary>
        public string Content { get { return _Content; } set { _Content = value; } }

        [DBColumn(Alias = "广告内容", CanBeNull = true, DbType = "text")]
        private string _Content;

        /// <summary>
        /// 是否限时投放
        /// </summary>
        public bool IsPeriodTime { get { return _IsPeriodTime ?? default(bool); } set { _IsPeriodTime = value; } }

        [DBColumn(Alias = "是否限时投放", DefaultValue = "0")]
        private bool? _IsPeriodTime;

        /// <summary>
        /// 限时投放开始时间
        /// </summary>
        public DateTime BeginTime { get { return _BeginTime ?? default(DateTime); } set { _BeginTime = value; } }

        [DBColumn(Alias = "限时投放开始时间", CanBeNull = true)]
        private DateTime? _BeginTime;

        /// <summary>
        /// 限时投放结束时间
        /// </summary>
        public DateTime FinishTime { get { return _FinishTime ?? default(DateTime); } set { _FinishTime = value; } }

        [DBColumn(Alias = "限时投放结束时间", CanBeNull = true)]
        private DateTime? _FinishTime;

        /// <summary>
        /// 文件标签
        /// </summary>
        public string Tags { get { return _Tags; } set { _Tags = value; } }

        [DBColumn(Alias = "文件标签", CanBeNull = true, Length = "16")]
        private string _Tags;

        /// <summary>
        /// 文件描述
        /// </summary>
        public string Description { get { return _Description; } set { _Description = value; } }

        [DBColumn(Alias = "文件描述", CanBeNull = true, DbType = "text")]
        private string _Description;

        /// <summary>
        /// 投放范围
        /// </summary>
        public string Region { get { return _Region; } set { _Region = value; } }

        [DBColumn(Alias = "投放范围", CanBeNull = true, Length = "Max")]
        private string _Region;

        /// <summary>
        /// 扩展标签
        /// </summary>
        public string ExTags { get { return _ExTags; } set { _ExTags = value; } }

        [DBColumn(Alias = "扩展标签", Length = "16")]
        private string _ExTags;

        /// <summary>
        /// 排列次序
        /// </summary>
        public short Ordinal { get { return _Ordinal ?? default(short); } set { _Ordinal = value; } }

        [DBColumn(Alias = "排列次序", DefaultValue = "999")]
        private short? _Ordinal;

        /// <summary>
        /// 状态
        /// </summary>
        public short State { get { return _State ?? default(short); } set { _State = value; } }

        [DBColumn(Alias = "状态", DefaultValue = "0")]
        private short? _State;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

        [DBColumn(Alias = "创建时间", DefaultValue = "getdate()")]
        private DateTime? _CreatedTime;

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime ModifiedTime { get { return _ModifiedTime ?? default(DateTime); } set { _ModifiedTime = value; } }

        [DBColumn(Alias = "最后更新时间", CanBeNull = true)]
        private DateTime? _ModifiedTime;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

        [DBColumn(Alias = "是否删除", DefaultValue = "0")]
        private bool? _IsDeleted;

        /// <summary>
        /// 网站标签
        /// </summary>
        public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

        [DBColumn(Alias = "网站标签", CanBeNull = true, Length = "16")]
        private string _SiteTag;

    }
}
